<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>

    <script th:src="@{/webjars/jquery/3.3.0/jquery.min.js}"></script>
    <link th:href="@{/webjars/bootstrap/3.3.7/css/bootstrap.min.css}" rel="stylesheet"/>
    <script th:src="@{/webjars/bootstrap/3.3.7/js/bootstrap.min.js}"></script>

    <link th:href="@{/css/index.css}" rel="stylesheet"/>
    <link th:href="@{/css/login.css}" rel="stylesheet"/>
    <title>login</title>
</head>
<body>

<div class="container">
    <div class="col-md-4 col-center-block">
        <form action="/user/userLogin" class="form-group" method="post">
            <h2 class="formTip">用户登录</h2>
            <p style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
            <input type="text" id="username" class="form-control" name="username" placeholder="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;username" required autofocus>
            <input type="password" id="inputPassword" class="form-control" name="password" placeholder="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;password" required>

            <div class="checkbox">
                <label>
                    <input  type="checkbox" value="remember-me">
                    记住我 </label>
            </div>
            <button class="btn btn-lg btn-primary " type="submit">登录</button>
            <a href="#" class="btn btn-default btn-lg" >注册</a>
        </form>
    </div>


</body>
</html>